package com.ykdl.member.kid.beans;

import java.io.Serializable;
import java.util.ArrayList;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import net.wxxr.http.interfaces.IJsonParser;

public class LotteryListBean implements Serializable , IJsonParser{

	/**
	 * 
	 */
	private static final long serialVersionUID = -766808588736399595L;
	private int next_cursor;
	private int total_number;
	private ArrayList<LotteryBean>  lottery;
	private String desc ;
	private String error ;
	


	public int getNext_cursor() {
		return next_cursor;
	}



	public int getTotal_number() {
		return total_number;
	}



	public ArrayList<LotteryBean> getLottery() {
		return lottery;
	}



	public String getDesc() {
		return desc;
	}



	public String getError() {
		return error;
	}



	@Override
	public IJsonParser parse(String json) throws Exception {
		// TODO Auto-generated method stub
		Gson   gson = null;
		if(null != json){
			GsonBuilder b = new GsonBuilder();
			gson  = b.create();
			return gson.fromJson(json, LotteryListBean.class);
		}
		return null;
	}

}
